﻿function fun_Common_NewGUID() {
    var MaxID = localStorage.getItem("localStorage_MaxID");
    if (MaxID == null) {
        MaxID = "0";
        localStorage.setItem("localStorage_MaxID", "0");
    }
    var MaxIDInt = parseInt(MaxID, 10) + 1;
    localStorage.setItem("localStorage_MaxID", MaxIDInt.toString());
    return MaxIDInt.toString();
}
function AddLocalStorageEvent() {
    if (window.addEventListener) {
        window.addEventListener("storage", LocalStorageChangeHandle, false);
    } else if (window.attachEvent) {
        window.attachEvent("onstorage", LocalStorageChangeHandle);
    }
}
function Fun_GetObjectJsonInfo(e) {
    var a = "{";
    for (var obj in e) {
        if (typeof (e[obj]) != "object" && typeof (e[obj]) != "function" && e[obj] != null) {
            a += obj + ":\"" + e[obj] + "\",";
        }
    }
    a = a.substring(0, a.length - 1) + "}";
    return a;
}